package com.shujia.wyh.day05;

class Fu {
    public int num = 10;

    public Fu() {
        System.out.println("fu");   // 1
    }
}

class Zi extends Fu {
    public int num = 20;

    public Zi() {
        //super();
        System.out.println("zi"); // 2
    }

    public void show() {
        int num = 30;
        System.out.println(num);  // 3
        System.out.println(this.num); // 4
        System.out.println(super.num); // 5
    }
}

class Test {
    public static void main(String[] args) {
        Zi z = new Zi();
        z.show();
    }
}
